package edu.kaist.cs442.server.locationalpush.tracker;

import edu.kaist.cs442.server.locationalpush.common.mobile.MobileDAO;
import edu.kaist.cs442.server.locationalpush.common.mobile.MobileVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;

/**
 * Created by IntelliJ IDEA.
 * User: duyleekun
 * Date: 2/29/12
 * Time: 10:38 PM
 * To change this template use File | Settings | File Templates.
 */
@Configurable
public class TrackerSVCImpl implements TrackerSVC {
    @Autowired
    MobileDAO mobileDAO;

    @Override
    public String updateLocation(String uuid, double newLatitude, double newLongitude) {
        MobileVO mobile = new MobileVO(uuid,newLatitude,newLongitude);
        return String.valueOf(mobileDAO.update(mobile));
    }
}
